package com.itheima.service.impl;

import com.itheima.dao.BookDao;
import com.itheima.service.BookService;

/**
 * @author げっしょく
 * @date 2021/9/11
 */
public class BookServiceImpl implements BookService {
    private BookDao bookdao;

    private int age;

    private String str;

    public void setBookdao(BookDao bookdao) {
        this.bookdao = bookdao;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void setStr(String str) {
        this.str = str;
    }

    public void save() {
        System.out.println("BookService save ..." + age + "..." + str);
        bookdao.save();
    }
}
